package com.daylightrobbery.server.packet.game.destiny;

import com.daylightrobbery.server.packet.type.DataPacket;
import com.daylightrobbery.server.packet.type.RoomDataPacket;
import org.springframework.stereotype.Component;

@Component
public class CreateDestinyPacketResp implements RoomDataPacket {
    public static int type = 70004;
    public String uid;
    public int roomId;
    public int pathIndex;
    public String syncId;

    public int destinyType; // 机会卡片类型
    public String msg; // 卡片消息
    public boolean playerGet; // 获得金币/丢失金币
    public int Money; //金钱数额


    @Override
    public DataPacket process() {
        return null;
    }

    @Override
    public int getType() {
        return type;
    }

    @Override
    public int getRoomId() {
        return roomId;
    }

    public String getUid() {
        return uid;
    }

    public CreateDestinyPacketResp setUid(String uid) {
        this.uid = uid;
        return this;
    }

    public CreateDestinyPacketResp setRoomId(int roomId) {
        this.roomId = roomId;
        return this;
    }

    public int getPathIndex() {
        return pathIndex;
    }

    public CreateDestinyPacketResp setPathIndex(int pathIndex) {
        this.pathIndex = pathIndex;
        return this;
    }

    public String getSyncId() {
        return syncId;
    }

    public CreateDestinyPacketResp setSyncId(String syncId) {
        this.syncId = syncId;
        return this;
    }

    public int getDestinyType() {
        return destinyType;
    }

    public CreateDestinyPacketResp setDestinyType(int destinyType) {
        this.destinyType = destinyType;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public CreateDestinyPacketResp setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public boolean isPlayerGet() {
        return playerGet;
    }

    public CreateDestinyPacketResp setPlayerGet(boolean playerGet) {
        this.playerGet = playerGet;
        return this;
    }

    public int getMoney() {
        return Money;
    }

    public CreateDestinyPacketResp setMoney(int money) {
        Money = money;
        return this;
    }

    @Override
    public String toString() {
        return "CreateDestinyPacketResp{" +
                "uid='" + uid + '\'' +
                ", roomId=" + roomId +
                ", pathIndex=" + pathIndex +
                ", syncId='" + syncId + '\'' +
                ", destinyType=" + destinyType +
                ", msg='" + msg + '\'' +
                ", playerGet=" + playerGet +
                ", Money=" + Money +
                '}';
    }
}
